package com.computercourse.manage_course.exception;

import com.computercourse.framework.exception.ExceptionCatch;
import com.computercourse.framework.model.response.CommonCode;
import org.springframework.web.bind.annotation.ControllerAdvice;

import java.nio.file.AccessDeniedException;

/**
 * @description:
 * @author: yuanfeng
 * @date: Created in 2020/2/15 6:03 下午
 * @version: 1.0
 */
@ControllerAdvice
public class CustomExceptionCatch extends ExceptionCatch {

    static {

        builder.put(AccessDeniedException.class, CommonCode.UNAUTHORISE);
    }
}